package com.xigua.JucOfBeautiful.chapterOne.daemonThread1_10;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/1/2318:30
 */
public class DaemonThreadTest {

    public static void main(String[] args) {
        Thread daemonThread = new Thread(()->{
            while (true){

            }
        });
        daemonThread.setDaemon(true);
        daemonThread.start();
        System.out.println("mian over");
    }

}
